#==================== 全编译 ====================#
CXXXDIRS += $(shell pwd)/cgi-bin

all:
	@for i in $(CXXXDIRS) ; do\
		make -C $$i || exit $?; \
	done

clean:
	@for i in $(CXXXDIRS) ; do\
		make -C $$i clean || exit $?; \
	done
	-rm -rf httpsServer

#==================== 单编目录 ====================#

%_only:
	@case "$(@)" in */*) \
		d=`expr $(@) : '\(.*\)_only'`; \
	    make -C $$d || exit $?; \
	esac

%_clean:
	@case "$(@)" in */*) \
		d=`expr $(@) : '\(.*\)_clean'`; \
		make -C $$d clean || exit $?; \
	esac